.class public Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;
.super Landroid/app/Activity;
.source "Main.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;,
        Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$askforroot;
    }
.end annotation


# static fields
.field static final DIALOG_ABOUT_ID:I = 0x2

.field static final DIALOG_CODES_ID:I = 0x1

.field static final DIALOG_TERMS_ID:I


# instance fields
.field private data:Ljava/lang/String;

.field private displaycodes:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 34
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 38
    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->data:Ljava/lang/String;

    .line 39
    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->displaycodes:Ljava/lang/String;

    .line 34
    return-void
.end method

.method static synthetic access$0(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 38
    iput-object p1, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->data:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$1(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->data:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 39
    iput-object p1, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->displaycodes:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    .line 44
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 45
    const/high16 v3, 0x7f03

    invoke-virtual {p0, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->setContentView(I)V

    .line 46
    const-string v0, ""

    .line 47
    .local v0, background:Ljava/lang/String;
    const v3, 0x7f060001

    invoke-virtual {p0, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 49
    .local v2, text:Landroid/widget/TextView;
    const/4 v3, 0x0

    invoke-virtual {p0, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->showDialog(I)V

    .line 50
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const v4, 0x7f040016

    invoke-virtual {p0, v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\n\n"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 51
    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 64
    move-object v1, p0

    .line 66
    .local v1, c:Landroid/content/Context;
    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 4
    .parameter "id"

    .prologue
    .line 72
    packed-switch p1, :pswitch_data_0

    .line 141
    const/4 v1, 0x0

    :goto_0
    return-object v1

    .line 74
    :pswitch_0
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 76
    const v2, 0x7f040009

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 77
    const v2, 0x7f04000a

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 78
    const v2, 0x7f04000b

    new-instance v3, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$1;

    invoke-direct {v3, p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$1;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 84
    const v2, 0x7f04000c

    new-instance v3, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$2;

    invoke-direct {v3, p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$2;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 89
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    goto :goto_0

    .line 92
    :pswitch_1
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 94
    const v2, 0x7f040005

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 95
    const v2, 0x7f040006

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 96
    const v2, 0x7f040007

    new-instance v3, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$3;

    invoke-direct {v3, p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$3;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 102
    const v2, 0x7f040008

    new-instance v3, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$4;

    invoke-direct {v3, p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$4;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 107
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    goto :goto_0

    .line 110
    :pswitch_2
    move-object v0, p0

    .line 111
    .local v0, c:Landroid/content/Context;
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 113
    const v2, 0x7f040002

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 114
    const v2, 0x7f040003

    new-instance v3, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$5;

    invoke-direct {v3, p0, v0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$5;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Landroid/content/Context;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 132
    iget-object v2, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->displaycodes:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 133
    const v2, 0x7f040004

    new-instance v3, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$6;

    invoke-direct {v3, p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$6;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 138
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 72
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2
    .parameter "menu"

    .prologue
    .line 309
    invoke-virtual {p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    .line 310
    .local v0, inflater:Landroid/view/MenuInflater;
    const/high16 v1, 0x7f05

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 311
    const/4 v1, 0x1

    return v1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 7
    .parameter "item"

    .prologue
    const/4 v3, 0x0

    const/4 v6, 0x0

    const/4 v5, 0x1

    const-string v4, "android.intent.action.VIEW"

    .line 317
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    .line 339
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result v2

    :goto_0
    return v2

    .line 319
    :pswitch_0
    new-instance v0, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    const v2, 0x7f04000e

    invoke-virtual {p0, v2}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v4, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 320
    .local v0, myIntent:Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->startActivity(Landroid/content/Intent;)V

    move v2, v5

    .line 321
    goto :goto_0

    .line 323
    .end local v0           #myIntent:Landroid/content/Intent;
    :pswitch_1
    new-instance v2, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$askforroot;

    invoke-direct {v2, p0, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$askforroot;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$askforroot;)V

    new-array v3, v6, [Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$askforroot;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    move v2, v5

    .line 324
    goto :goto_0

    .line 326
    :pswitch_2
    new-instance v2, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;

    invoke-direct {v2, p0, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;-><init>(Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;)V

    new-array v3, v5, [Ljava/lang/String;

    const v4, 0x7f040010

    invoke-virtual {p0, v4}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v6

    invoke-virtual {v2, v3}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main$ScanForCodesTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    move v2, v5

    .line 327
    goto :goto_0

    .line 329
    :pswitch_3
    invoke-virtual {p0}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->finish()V

    move v2, v5

    .line 330
    goto :goto_0

    .line 332
    :pswitch_4
    const/4 v2, 0x2

    invoke-virtual {p0, v2}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->showDialog(I)V

    move v2, v5

    .line 333
    goto :goto_0

    .line 335
    :pswitch_5
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    const v2, 0x7f04000f

    invoke-virtual {p0, v2}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v1, v4, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 336
    .local v1, myIntent1:Landroid/content/Intent;
    invoke-virtual {p0, v1}, Lcom/clarkehackworth/SamsungGalaxySUnlock/Main;->startActivity(Landroid/content/Intent;)V

    move v2, v5

    .line 337
    goto :goto_0

    .line 317
    nop

    :pswitch_data_0
    .packed-switch 0x7f060002
        :pswitch_1
        :pswitch_2
        :pswitch_5
        :pswitch_0
        :pswitch_4
        :pswitch_3
    .end packed-switch
.end method
